package com.sch.hsy.system.domain;

import com.sch.hsy.common.annotation.Excel;
import com.sch.hsy.common.annotation.Excel.ColumnType;
import com.sch.hsy.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 阅读记录表
 * 
 */
@ApiModel("阅读记录")
public class SysRead extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("书籍ID")
    private Long bookId;

    @ApiModelProperty("章节ID")
    private Long chapterId;

    @ApiModelProperty("是否完成(0-未完成，1-完成阅读，2-完成答题)")
    private int finished;

    @ApiModelProperty("阅读到多少页(finished为0时生效)")
    private int readPages;

    @ApiModelProperty("积分(finished为2时生效)")
    private int record;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Long getChapterId() {
        return chapterId;
    }

    public void setChapterId(Long chapterId) {
        this.chapterId = chapterId;
    }

    public int getFinished() {
        return finished;
    }

    public void setFinished(int finished) {
        this.finished = finished;
    }

    public int getReadPages() {
        return readPages;
    }

    public void setReadPages(int readPages) {
        this.readPages = readPages;
    }

    public int getRecord() {
        return record;
    }

    public void setRecord(int record) {
        this.record = record;
    }
}
